<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="../common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<title>POS收单运营管理平台</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<link href="<s:url value="/css/a.css"/>" type="text/css" rel="stylesheet" />
<link href="<s:url value="/css/index.css"/>" type="text/css" rel="stylesheet" />
<link href="<s:url value="/css/common.css"/>" type="text/css"
	rel="stylesheet" />
	
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.3.2.js" />"></script>
<script type="text/javascript"
	src="<c:url value="/js/jquery-1.7.2.min.js" />"></script>
	
<script type="text/javascript" src="<c:url value="/js/common.js" />"></script>
<script language="javascript" type="text/javascript"
	src="<c:url value="/js/My97DatePicker/WdatePicker.js"/>"></script>

<style>
　　　
　　　　　a {
	text-decoration: none
}

　　　　　a:hover {
	color: red;
	text-decoration: none
}

a:VISITED {
	color: red;
}
　　


　　　
</style>

<script type="text/javascript">
$(document).ready(function() {

    $("#buttonid").click(function(){ 
 	 	$("#buttonid").attr("disabled", true);
    	$("#queryUserForm").attr("action","<%=basePath%>/agencyMerSummary/queryAgencyMerSummary.ct");
    	$("#queryUserForm").submit();
     });
	});
	
 
	function addpanel(id,title,html) {
				window.parent.parent.document.getElementById("framemain").contentWindow.addtabs(id,title,html);
			}

</script>
</head>
<body>
		<s:form id="queryUserForm" action="/agencyMerSummary/queryAgencyMerSummary.ct" method="post"
			theme="simple">
<table class="tb">
    <tbody>
		<tr class="tb-line">
			<td class="tb-td" colspan="4"><div class="tb-h2">POS收单运营管理平台</div></td>
		</tr>
		<tr class="tb-line">
			<td class="tb-td" colspan="4"><div class="tb-h3">代理商商户统计信息查询</div></td>
		</tr>
		<s:if test="#session.session_merchant.roleType==\"00\"">
			<tr class="tb-line">
            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
                <div class="tb-h4">代理商账号：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield id="accountNo"
							name="searchCondition.accountNo" cssClass="queryWidth" /><!-- </td> -->
				</label>
			</td>
					<!-- <td align="right"> -->
            <td width="12%" style="min-width: 150px" align="right" class="tb-td">
                <div class="tb-h4">代理商名称：</div>
            </td>
            <td class="tb-td">
                <label class="tb-input-normal">
                	<s:textfield id="agentName"
							name="searchCondition.agentName" cssClass="queryWidth" /><!-- </td> -->
				</label>
			</td>
			</tr>
			</s:if>
			<tr class="tb-line">
		        <td width="12%" style="min-width: 150px" align="right" class="tb-td">
		            <div class="tb-h4">起始日期：</div>
		        </td>
		        <td class="tb-td">
		 	        <label class="tb-input-normal"> 
		 	        	<s:textfield id="minDate" name="searchCondition.minDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});" 
		 					theme="simple" cssClass="queryWidth" />  
		 			</label>
		 		</td>	
		 		<td width="12%" style="min-width: 150px" align="right" class="tb-td">
		            <div class="tb-h4">结束日期：</div>
		        </td>
		        <td>
		 			<label class="tb-input-normal">
		 				<s:textfield id="maxDate" name="searchCondition.maxDate" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true,wdate:true,errDealMode:0});" 
		 					theme="simple" cssClass="queryWidth" /> 
		 			</label> 
				</td>
			</tr>
				
			<tr class="tb-line">
				<td colspan="4" align="center"><span style="color: red"><s:actionerror /></span>
					<span style="color: red;"><s:actionmessage /></span > <span style="color: red;"><s:fielderror
							cssClass="fieldError" /></span>
					<span id="otherError"></span>
				</td>
			</tr>
			<tr class="tb-line">
				<td  class="tb-td line-submit" align="right" colspan="4">
                <label class="tb-input-submit">
					<input id="buttonid" value="查   询" type="button"/>
				</label>
                <label class="tb-input-submit">
                	<s:reset value="取  消" />
				</label>
				</td>	
			</tr>
			</table>
		</s:form>
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<s:if
					test="#request.searchRsList != null && #request.searchRsList.size>0">
					<tr class="tb-line">
						<td class="tb-td paging" colspan="12" align="left">&nbsp;&nbsp;&nbsp;&nbsp; <page:pageCount
								max_pages="11" totalPage="${requestScope.totalPage}"
								currentPage="${requestScope.currentPage}"
								action="${rootPath}/agencyMerSummary/queryAgencyMerSummary.ct?currentPage=" />

						</td>
					</tr>
				</s:if>
			</table>
			
		<div class="big-tb">
		    <table id="tableList" class="tb" style="width: 100%;">
				<thead>
		            <tr class="tb-line">
		                <th class="tb-th" colspan="14">代理商商户统计信息</th>
		            </tr>
					<tr class="tb-line bg-gray">
						<th class="tb-th">编号</th>
						<th class="tb-th">统计日期</th>
						<th class="tb-th">代理商帐号</th>
						<th class="tb-th">代理商名称</th>
						<th class="tb-th">进件商户总数</th>
						<th class="tb-th">审核通过商户总数</th>
						<th class="tb-th">审核通过为绑定终端SN总数</th>
						<th class="tb-th">当天活跃商户数</th>
						<th class="tb-th">当天总交易笔数</th>
						<th class="tb-th">当天总交易金额</th>
						<th class="tb-th">30天内活跃商户总数</th>
						<th class="tb-th">60天内无交易的休眠商户总数</th>
						<th class="tb-th">30天内优质商户总数</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="#request.searchRsList" status="stat" id="oper">
						<tr class="tb-line">
					        <td class="tb-td" align="center">
							 <s:property value="#oper.id"/>
							</td>
							 <td class="tb-td" align="center">
							 <s:property value="#oper.summaryDate"/>
							</td>
							<td class="tb-td" align="center">
							 <s:property value="#oper.accountNo"/>
							</td>
							<td class="tb-td" align="center">
							<s:property value="#oper.agentName"/>
							</td>
					        <td class="tb-td" align="center"> 
					        <s:property value="#oper.addMchtNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.checkMchtNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.noBindingSnNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.briskMchtNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.transAmt"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.transNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.monthBriskMchtNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.dormentMchtNum"/>
							</td>
							<td class="tb-td" align="center"> 
					        <s:property value="#oper.excellentMchtNum"/>
							</td>
						</s:iterator>
				</tbody>
			</table>
	</div>
</body>
</html>
